{# app/Resources/views/security/login.html.twig #}
{# ... you will probably extends your base template, like base.html.twig #}

{% extends 'base.html.twig' %}

{% block body %}
 
<div class="row">
	{% if error %}
		<div class="alert alert-warning" role="alert">
			<!--{{ error.messageKey|trans(error.messageData) }}-->
			登陆失败，请确认用户名与密码是否正确
		</div>
	{% endif %}

	<div class="col-sm-4 col-sm-offset-4 form-box">
		<form action="{{ path('login_check') }}" method="post">
			<div class="form-group">
				<label for="username">用户名:</label>
				<input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" />
			</div>
		 
			<div class="form-group">
				<label for="password">密码:</label>
				<input class="form-control" type="password" id="password" name="_password" />
			</div>

			<div class="form-group">
				<button class="btn btn-primary center" type="submit">登陆</button>
			</div>

			<!--
			<input type="hidden" name="_target_path" value="/admin" />
			-->
		</form>
	</div>
</div>

{% endblock %}
